package com.wxm.log.api;

import com.wxm.log.api.aspect.LogAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * <p>
 *      日志配置
 * </p>
 *
 * @author: wxm
 * @Date: 2021/10/5
 */
public class LogConfiguration {
    /**
     * 注册日志切面
     * @return LogAspect
     */
    @Bean
    @ConditionalOnMissingBean//bean注册过后就不在注册
    public LogAspect sysLogAspect() {
        return new LogAspect();
    }
}
